
    document.getElementsByClassName("mask-text")[0].click();

    window.setTimeout(function(){
        document.querySelector('video').playbackRate=8.0;
    },3000)

    var i=0;
    window.setInterval(function(){
        var length = document.getElementsByClassName("vdialog-modal").length;
        console.log('检测是否有弹窗, 第 ' + (++i) + ' 次');
        if(length){
            console.log('弹窗出来了');
            var cont = document.getElementsByClassName("vd-content")[0].innerText;
            if(cont.indexOf("已完成") != -1){
                console.log('播放完了!!!');
                setTimeout(function(){
                    document.getElementsByClassName("system-li msg-tips lots-num")[0].click()
                    console.log('点击提醒');
                },3000);
                setTimeout(function(){
                    document.getElementsByClassName("upcoming-content")[0].getElementsByClassName("float-right")[1].click();
                    console.log('点击选项');
                },4000);

               }
            document.getElementsByClassName("vd-btn vd-btn-ok")[0].click();
            console.log('点击确定,弹窗消失');
            document.querySelector('video').playbackRate=8.0;
        }
    },5000)
